import { createRouter, createWebHashHistory } from 'vue-router'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: () => import('../views/HomeView/HomeView.vue'),
      meta: {
        keepAlive: true,
        isBack: true
      }
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/loginPage.vue')
    },
    {
      path: '/dataStatistics',
      name: 'dataStatistics',
      component: () => import('../views/dataStatistics/dataStatistics.vue')
    },
    {
      path: '/bloodPressDetails',
      name: 'bloodPressDetails',
      component: () => import('../views/HomeView/bloodPressDetails.vue')
    }
  ]
})

export default router
